﻿using System;
namespace HobSoft.SoccerBet2014.Domain.Schedule
{
    using Configuration;
    using DataService;
    using Domain.Models.Site;
    /// <summary>
    /// 业务请求服务的调度程序
    /// </summary>
    public interface IManagerSchedule
    {
        event Action<IBetSiteManagerService, BetSiteRequestType, string> OnScheduleError;
        event Action<IBetSiteManagerService, BetSiteRequestType, byte, string> OnScheduleRequestBefore;
        event Action<IBetSiteManagerService, BetSiteRequestType, byte, string> OnScheduleRequestOver;
        ScheduleConfiguration ScheduleConfig { get; }
        ISiteRequestLog ScheduleRequestLog { get; }
        void SetSchedule(ITimer _timer, ScheduleConfiguration _config);
        void StartSchedule();
        void StopSchedule();
    }
}
